package com.example.state.order;

/**
 * 订单实体类
 */
public class Order {
    private int id;
    private OrderStates states;
    public void setStates(OrderStates states) {
        this.states = states;
    }

    public OrderStates getStates() {
        return states;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    @Override
    public String toString() {
        return "订单号：" + id + ", 订单状态：" + states;
    }
}
